home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / Miro_Downloader.exe / email / errors.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2007-11-12  |  3.2 KB  |  73 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.5)
  3.  
  4. '''email package exception classes.'''
  5.  
  6. class MessageError(Exception):
  7.     '''Base class for errors in the email package.'''
  8.     pass
  9.  
  10.  
  11. class MessageParseError(MessageError):
  12.     '''Base class for message parsing errors.'''
  13.     pass
  14.  
  15.  
  16. class HeaderParseError(MessageParseError):
  17.     '''Error while parsing headers.'''
  18.     pass
  19.  
  20.  
  21. class BoundaryError(MessageParseError):
  22.     """Couldn't find terminating boundary."""
  23.     pass
  24.  
  25.  
  26. class MultipartConversionError(MessageError, TypeError):
  27.     '''Conversion to a multipart is prohibited.'''
  28.     pass
  29.  
  30.  
  31. class CharsetError(MessageError):
  32.     '''An illegal charset was given.'''
  33.     pass
  34.  
  35.  
  36. class MessageDefect:
  37.     '''Base class for a message defect.'''
  38.     
  39.     def __init__(self, line = None):
  40.         self.line = line
  41.  
  42.  
  43.  
  44. class NoBoundaryInMultipartDefect(MessageDefect):
  45.     '''A message claimed to be a multipart but had no boundary parameter.'''
  46.     pass
  47.  
  48.  
  49. class StartBoundaryNotFoundDefect(MessageDefect):
  50.     '''The claimed start boundary was never found.'''
  51.     pass
  52.  
  53.  
  54. class FirstHeaderLineIsContinuationDefect(MessageDefect):
  55.     '''A message had a continuation line as its first header line.'''
  56.     pass
  57.  
  58.  
  59. class MisplacedEnvelopeHeaderDefect(MessageDefect):
  60.     """A 'Unix-from' header was found in the middle of a header block."""
  61.     pass
  62.  
  63.  
  64. class MalformedHeaderDefect(MessageDefect):
  65.     '''Found a header that was missing a colon, or was otherwise malformed.'''
  66.     pass
  67.  
  68.  
  69. class MultipartInvariantViolationDefect(MessageDefect):
  70.     '''A message claimed to be a multipart but no subparts were found.'''
  71.     pass
  72.  
  73.